
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer



authorizer = DummyAuthorizer()



authorizer.add_user('ysw', 'ysw', './', perm='elradfmw')


handler = FTPHandler

handler.authorizer = authorizer


server = FTPServer(('0.0.0.0', 2121), handler)


server.serve_forever()

